import React from 'react'
// import HomeBannerCss from './index.module.scss'
import ReactSwiper from 'reactjs-swiper'
import './homeBanner.css'

class HomeBanner extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            swiperContainer: {
                preloadImages: true, //预加载图片
                autoplay: 1000, //是否自动轮播
                autoplayDisableOnInteraction: false, //鼠标操作轮播图是否停止
            },
           bannerList:[]
        }
    }
    render() {
        return (
            <div className="home-main">
                <ReactSwiper className="banner"  swiperContainer={this.state.swiperContainer} showPagination items={this.props.items}></ReactSwiper>
            </div>
        )
    }
    
}
export default HomeBanner;

